package com.dede.getmusic.module.play.service

import android.app.Service
import android.content.Intent
import android.os.IBinder
import android.util.Log

/**
 * @author hsh
 * @date 2017/10/31 9:44.
 * @doc
 */
class MusicService : Service() {
    
    private val TAG = "MusicService"

    private val binder by lazy { MusicServiceBinder(this) }

    override fun onCreate() {
        Log.i(TAG, "onCreate: ")
        super.onCreate()
    }

    override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
        Log.i(TAG, "onStartCommand: ")
        return super.onStartCommand(intent, flags, startId)
    }

    override fun onBind(intent: Intent?): IBinder {
        Log.i(TAG, "onBind: ")
        return binder
    }

    override fun onUnbind(intent: Intent?): Boolean {
        Log.i(TAG, "onUnbind: ")
        return super.onUnbind(intent)
    }

    override fun onDestroy() {
        Log.i(TAG, "onDestroy: ")
        super.onDestroy()
    }
    
    fun excute() {
        Log.i(TAG, "excute: ")
    }

}